home *** CD-ROM | disk | FTP | other *** search
- ** This block is for documenting your model.
- ** Copyright © 1990-1994 by Imagine That, Inc.
- ** All Rights Reserved.
- ** Extend Generic Library, Help block; Pat Diamond 2/8/90
- ** modified:
- ** 1/1/92 JSL Modified for V2.0
- ** 2/14/94 DJK modified report
- ** 3/10/94 DJK added block label to report
-
-
- ** This message occurs for each step in the simulation.
- on simulate
- {
- beep();
- }
-
-
- ** Initialize any simulation variables.
- on initsim
- {
- getSimulateMsgs(FALSE);
- }
-
-
- on endSim
- {
- ** sysGlobal1 is the file reference number for the TEXT REPORT
- if( sysGlobal1 != 0.0 ) ** 0 is error, check for open file for REPORT
- {
- // template for report: |BLOCK NAME *****************|block number |BLOCK NUMBER*******
- fileWrite(sysGlobal1,"Help block number "+MyBlockNumber(),"",True);
- if(getBlockLabel(myBlockNumber()) != "")
- fileWrite(sysGlobal1,"Block Label: "+getBlockLabel(myBlockNumber()),"",True);
- if( comments1 != "" )
- fileWrite(sysGlobal1," "+comments1,"",True);
- if( comments2 != "" )
- fileWrite(sysGlobal1," "+comments2,"",True);
- if( comments3 != "" )
- fileWrite(sysGlobal1," "+comments3,"",True);
- if( comments4 != "" )
- fileWrite(sysGlobal1," "+comments4,"",True);
- fileWrite(sysGlobal1," ","",True);
- }
- }